//
//  CSL_Search_albumCell.m
//  HZ_Beautiful_Music
//
//  Created by dllo on 16/4/1.
//  Copyright © 2016年 ui. All rights reserved.
//

#import "CSL_Search_albumCell.h"

@implementation CSL_Search_albumCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.headImageView = [[UIImageView alloc] initWithFrame:CGRectZero];
//        _headImageView.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_headImageView];
        
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectZero];
//        _titleLabel.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_titleLabel];
        
        self.nameEndTimaLabel = [[UILabel alloc] initWithFrame:CGRectZero];
//        _nameEndTimaLabel.backgroundColor = [UIColor redColor];
        _nameEndTimaLabel.font = [UIFont systemFontOfSize:12];
        _nameEndTimaLabel.textColor = [UIColor grayColor];
        [self.contentView addSubview:_nameEndTimaLabel];
        
        self.jImageView = [[UIImageView alloc] initWithFrame:CGRectZero];
//        _jImageView.backgroundColor = [UIColor redColor];
        _jImageView.image = [[UIImage imageNamed:@"jiantou64"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
        [self.contentView addSubview:_jImageView];
        
        self.footView = [[UIView alloc] initWithFrame:CGRectZero];
        _footView.backgroundColor = [UIColor colorWithWhite:0.819 alpha:1.000];
        [self.contentView addSubview:_footView];
    }
    return self;
}

-(void)layoutSubviews {
    [super layoutSubviews];
    _headImageView.frame = CGRectMake(self.bounds.size.width/20, self.bounds.size.height/12, self.bounds.size.width/4.7, self.bounds.size.height/1.2);
    _titleLabel.frame = CGRectMake(self.bounds.size.width/3, self.bounds.size.height/3.5, self.bounds.size.width/2, self.bounds.size.height/3.5);
    _nameEndTimaLabel.frame = CGRectMake(self.bounds.size.width/3, self.bounds.size.height/1.6, self.bounds.size.width/2, self.bounds.size.height/4.5);
    _jImageView.frame = CGRectMake(self.bounds.size.width/1.1, self.bounds.size.height/2.4, self.bounds.size.width/20, self.bounds.size.height/4);
    _footView.frame = CGRectMake(0, self.bounds.size.height-1, self.bounds.size.width, 1);
}


@end
